package mededelingen.model;

import java.util.ArrayList;

import dao.mededelingen.DataLayerMVDD;

public class MopVanDeDagLijst {

	DataLayerMVDD dla = new DataLayerMVDD();
	
	private ArrayList<MopVanDeDag> mvdd;

	public static MopVanDeDagLijst instance;

	public static MopVanDeDagLijst getInstance() {
		if(instance == null){
			instance = new MopVanDeDagLijst();
		}
		return instance;
	}

	private MopVanDeDagLijst() {
		mvdd = new ArrayList<>();
	}

	public void loadMop(){
		dla.openConn();
		dla.loadMop();
		dla.closeConn();
	}  

	public void addMop(MopVanDeDag m){
		mvdd.add(m);
	}


	public ArrayList<MopVanDeDag> getMvdd() {
		return mvdd;
	}


	public void setMvdd(ArrayList<MopVanDeDag> mvdd) {
		this.mvdd = mvdd;
	}

}
